import request from '@/utils/request'

export function getScheduleType(query) {
  return request({
    url: '/schedule/type/listall',
    method: 'get',
    params: query
  })
}

export function getCountDays(month){
	var curDate = new Date();
  if(!! month) {
    curDate.setMonth(month);
  }
	curDate.setDate(0);
	return curDate.getDate();
}

export function parseBoolString(bool){
	if(bool) {
	  return "是";
	}
	return "否";
}
